/* 换肤按钮样式 */
.skin-change-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

.skin-change-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.skin-change-btn:hover::before {
    left: 100%;
}

.skin-change-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skin-change-btn:active {
    transform: scale(0.95);
}

.myself-container {
    height: 100vh;
    width: 100vw;
    margin: 0;
    /* 日间主题（默认） */
    background: #ffffff url('/src/assets/img/bg-day.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* 夜间主题 */
.dark .myself-container {
    background: #ffffff url('/src/assets/img/indexLightBackground.png') center center / cover no-repeat;
}

.dark .myself-ceiling {
    background: url('/src/assets/img/ceil.png') center center / cover no-repeat;
}

.dark .myself-floor {
    background: url('/src/assets/img/floor.png') center center / cover no-repeat;
}

.dark .myself-video-frame {
    background: url('/src/assets/img/border-day.png') center center / contain no-repeat;
}

/* 可选：深色模式下自动适配 */
.dark .voice-speech-bubble {
    color: #e5e7eb;
    --bubble-bg: rgba(17, 24, 39, 0.9);
    --bubble-border: #22d3ee;
    --bubble-border-2: #a78bfa;
    --bubble-shadow: rgba(0, 0, 0, .35);
}

/* 天花板图片 */
.myself-ceiling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url('/src/assets/img/ceil-day.png') center center / cover no-repeat;
    z-index: 5;
}

/* 地板图片 */
.myself-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url('/src/assets/img/floor-day.png') center center / cover no-repeat;
    z-index: 5;
}

/* 主内容区域 */
.myself-content {
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
}

.myself-model-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 500px;
    min-width: 500px;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* 数字人对话气泡 */
.myself-speech-bubble {
    position: absolute;
    top: 20%;
    left: 10%;
    background: rgba(60, 60, 60, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 200px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.myself-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(60, 60, 60, 0.9);
}

/* 右侧视频区域 */
.myself-right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px;
    box-sizing: border-box;
    position: relative;
}


.myself-video-frame {
    width: 100%;
    max-width: 900px;
    height: 800px;
    position: relative;
    background: url('/src/assets/img/border.png') center center / contain no-repeat;
}

.myself-video-box {
    position: absolute;
    top: 190px;
    left: 60px;
    right: 60px;
    bottom: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
}

/* 悬停出现的弹幕输入条 */
.danmu-bar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 56px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: all .2s ease;
    z-index: 4;
}

.myself-video-frame:hover .danmu-bar,
.myself-video-box:hover .danmu-bar {
    opacity: 1;
    transform: translateY(0);
}

.danmu-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .15);
    outline: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #111;
}

.danmu-input::placeholder {
    color: rgba(0, 0, 0, 0.55);
}

.danmu-send {
    height: 40px;
    padding: 0 18px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.danmu-emoji-container {
    position: relative;
}

.danmu-emoji-btn {
    height: 40px;
    width: 40px;
    background: rgba(255, 193, 7, 0.1);
    color: #333;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.danmu-emoji-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
    border-color: rgba(255, 193, 7, 0.5);
}

.danmu-manage-btn {
    height: 40px;
    width: 40px;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.danmu-manage-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.danmu-settings-btn {
    height: 40px;
    width: 40px;
    background: rgba(255, 165, 0, 0.1);
    color: #ff8c00;
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.danmu-settings-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
}

.danmu-filter-btn {
    height: 40px;
    width: 40px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.danmu-filter-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}


.myself-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #333;
    position: relative;
    z-index: 1;
}

.myself-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 弹幕层覆盖整个视频区域 */
.danmu-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

/* 被遮挡的弹幕样式 - 移除遮挡效果，让弹幕正常显示 */
.danmu-item.occluded {
    /* 移除所有遮挡效果，让弹幕正常显示 */
    opacity: 1;
}

.danmu-item {
    position: absolute;
    right: 0;
    white-space: nowrap;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.6);
    animation-name: danmu-move;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    will-change: transform;
    /* 关键：启用硬件加速 */
    user-select: none;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.danmu-item.paused {
    opacity: 0.7;
    animation-play-state: paused;
}

@keyframes danmu-move {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(calc(-100% - 100vw));
    }
}

/* 提示框区域 */
.myself-notification {
    position: absolute;
    top: 70px;
    left: 70%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #92400e;
    white-space: nowrap;
}

.myself-bell-icon {
    width: 28px;
    height: 28px;
    background: url('/src/assets/img/notice.gif') center center / contain no-repeat;
}

/* 右侧按钮组 */
.myself-right-controls {
    position: absolute;
    top: -20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

/* 左侧进入展馆文字，与右侧按钮同一水平线 */
/* 与按钮并排的内联链接样式 */
.myself-inline-link {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.myself-control-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.myself-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 底部彩球语音按钮 */
.voice-orb-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.voice-orb {
    width: 92px;
    height: 92px;
    border-radius: 9999px;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

/* 外侧柔和光圈 */
.voice-orb::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: conic-gradient(#6ee7ff, #9f5cff, #ff6ad5, #6ee7ff);
    filter: blur(1.5px);
    opacity: 0.85;
    z-index: -1;
}

.voice-orb-img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}

/* 语音设置按钮 - 单独定位在彩球右边 */
.voice-settings-orb-btn {
    position: absolute;
    bottom: 46px;
    left: calc(50% + 76px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 16;
}

.voice-settings-orb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.voice-settings-orb-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 语音设置按钮的光圈效果 */
.voice-settings-orb-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(#667eea, #764ba2, #667eea);
    filter: blur(2px);
    opacity: 0.6;
    z-index: -1;
    animation: voiceSettingsRotate 3s linear infinite;
}

@keyframes voiceSettingsRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 语音识别结果-彩球旁气泡（带可配置边框/颜色） */
.voice-speech-bubble {
    position: absolute;
    /* 相对 voice-orb-container 定位 */
    bottom: 110px;
    /* 放在彩球上方一点 */
    left: 0;
    /* 对齐容器左边 */
    transform: translateX(-100%);
    /* 整体移动到彩球左侧 */
    z-index: 20;
    display: inline-flex;
    align-items: center;
    max-width: 320px;
    /* 限制为约20个字的宽度 */
    width: max-content;
    color: #1f2937;
    /* 字体颜色 */
    --bubble-bg: #ffffff;
    /* 背景色 */
    --bubble-border: #60a5fa;
    /* 边框主色 */
    --bubble-border-2: #a78bfa;
    /* 边框次色 */
    --bubble-shadow: rgba(0, 0, 0, .12);
    /* 阴影色 */
}

.voice-speech-content {
    background: var(--bubble-bg);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 6px 16px var(--bubble-shadow);
    position: relative;
    z-index: 0;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    max-width: 100%;
}

/* 渐变描边（外发光边框） */
.voice-speech-content::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bubble-border), var(--bubble-border-2));
    z-index: -1;
}

/* 尾巴 */
.voice-speech-tail {
    position: absolute;
    left: 8px;
    bottom: -8px;
    width: 12px;
    height: 12px;
    background: var(--bubble-bg);
    transform: rotate(45deg);
    box-shadow: 3px 3px 10px var(--bubble-shadow);
}

/* 语音识别结果样式 */
.voice-result {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 300px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 语音状态气泡样式 */
.voice-status-bubble {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 300px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voice-status-content {
    color: white;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.voice-status-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-status-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.voice-text,
.voice-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: white;
    font-size: 14px;
    line-height: 1.4;
}

.voice-label {
    color: #4a9eff;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.voice-content {
    flex: 1;
    word-break: break-word;
}

.voice-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.voice-error .voice-label {
    color: #ff6b6b;
}

/* 录音状态样式 */
.voice-orb.recording::before {
    animation: pulse 1.5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
}

.voice-orb.processing::before {
    animation: pulse 2s ease-in-out infinite;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.3) 0%, transparent 70%);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* 斜向半透明色带，随旋转 */
.voice-orb-core::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.35) 0px,
            rgba(255, 255, 255, 0.18) 18px,
            rgba(255, 255, 255, 0.08) 36px,
            rgba(0, 0, 0, 0) 54px);
    mix-blend-mode: screen;
}

/* 额外彩虹层，提升色彩丰富度 */
.voice-orb-core::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            rgba(111, 229, 255, 0.22),
            rgba(159, 92, 255, 0.22),
            rgba(255, 106, 213, 0.22),
            rgba(255, 191, 36, 0.22),
            rgba(52, 211, 153, 0.22),
            rgba(96, 165, 250, 0.22),
            rgba(111, 229, 255, 0.22));
    mix-blend-mode: screen;
    animation: orb-rotate 3.2s linear infinite;
}

.voice-orb.paused .voice-orb-core::after {
    animation-play-state: paused;
}

.voice-orb.paused .voice-orb-core {
    animation-play-state: paused;
}

.voice-orb.paused {
    opacity: 0.95;
}

@keyframes orb-rotate {
    from {
        transform: perspective(400px) rotateX(18deg) rotateY(12deg) rotate(0deg);
    }

    to {
        transform: perspective(400px) rotateX(18deg) rotateY(12deg) rotate(360deg);
    }
}

.myself-animation-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
    z-index: 100;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.myself-animation-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.myself-animation-select:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.myself-animation-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 深色模式支持 */
.dark .myself-animation-menu {
    background: rgba(31, 41, 55, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .myself-animation-select {
    border-color: #4b5563;
    background-color: #374151;
    color: #e5e7eb;
}

.dark .myself-animation-select:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1);
}

.dark .myself-animation-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.myself-canvas {
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: 20;
}

.myself-canvas-loading {
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* AI对话相关样式 */
.ai-response-bubble {
    position: fixed;
    top: 65%;
    left: 20%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 20px;
    max-width: 400px;
    min-width: 300px;
    max-height: 120px;
    /* 约5行的高度 */
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.ai-response-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-avatar {
    font-size: 20px;
    margin-right: 8px;
}

.ai-name {
    font-weight: bold;
    color: #4CAF50;
}

.ai-response-content {
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
    overflow-y: auto;
    /* 垂直滚动 */
    overflow-x: hidden;
    /* 隐藏水平滚动 */
    padding-right: 8px;
    /* 为滚动条留出空间 */
    min-height: 0;
    /* 允许flex子项收缩 */
}

/* 自定义滚动条样式 */
.ai-response-content::-webkit-scrollbar {
    width: 6px;
}

.ai-response-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ai-response-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.ai-response-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.user-message-bubble {
    position: fixed;
    top: 20%;
    right: 20px;
    background: rgba(33, 150, 243, 0.9);
    color: white;
    padding: 15px;
    border-radius: 15px;
    max-width: 300px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: fadeInRight 0.3s ease-out;
}

.user-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    font-weight: bold;
    font-size: 12px;
}

.user-avatar {
    font-size: 16px;
}

.user-message-content {
    font-size: 13px;
    line-height: 1.4;
}

.conversation-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    animation: fadeInDown 0.3s ease-out;
}

.conversation-status.listening {
    background: rgba(76, 175, 80, 0.8);
}

.conversation-status.processing {
    background: rgba(255, 193, 7, 0.8);
}

.conversation-status.thinking {
    background: rgba(156, 39, 176, 0.8);
}

.conversation-status.responding {
    background: rgba(33, 150, 243, 0.8);
}

.conversation-status.error {
    background: rgba(244, 67, 54, 0.8);
}

.status-icon {
    font-size: 16px;
}

.status-text {
    font-weight: 500;
}

.streaming-text {
    display: inline;
}

.streaming-content {
    display: inline;
}

.streaming-cursor {
    display: inline;
    animation: blink 1s infinite;
    color: #4CAF50;
    font-weight: bold;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 右上角语言切换按钮容器 */
.myself-lang-toggle {
    position: absolute;
    top: 20px;
    right: 1.0417vw;
    /* ~20px @1920 */
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 使右上角的两个按钮横向排列且自适应宽度 */
.myself-lang-toggle .myself-animation-select {
    width: auto;
}

/* 对话导出按钮 - 定位在语音设置按钮旁边 */
.chat-export-orb-btn {
    position: absolute;
    bottom: 46px;
    left: calc(50% + 150px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    z-index: 16;
}

.chat-export-orb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.chat-export-orb-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 对话导出按钮的光圈效果 */
.chat-export-orb-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(#4CAF50, #45a049, #4CAF50);
    animation: rotate 3s linear infinite;
    z-index: -1;
}

.chat-export-orb-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    z-index: -1;
}